package com.own.component.common.base.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.own.component.common.login.user.BaseLoginUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

/**
 * BasePo 基础信息po
 *
 * @author chenxueli
 * @date 2022-09-10 12:01:52
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public abstract class BasePo extends BaseWithoutMemoPo implements Serializable {

    @Schema(title = "备注")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField
    private String memo;

    /**
     * 设置初始化信息
     */
    @Override
    public void init() {
        super.init();
    }

    /**
     * 设置初始化信息
     *
     * @param loginUser 登录用户对象
     */
    @Override
    public void init(BaseLoginUser loginUser) {
        super.init(loginUser);
    }

}
